package com.biz.primus.ms.order.feign;

import com.biz.primus.model.promotion.vo.req.OrderPromotionReqVo;
import com.biz.primus.model.promotion.vo.req.TakeMemberPromotionReqVo;
import com.biz.primus.model.promotion.vo.resp.OrderPromotionRespVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 促销接口调用
 *
 * @author Tiger Feng
 * @date 2017年11月08日
 */
@FeignClient(qualifier = "promotionFeignClient", name = "service-promotion")
public interface PromotionFeignClient {
    /**
     * 获取促销信息
     * @param reqVo
     * @return
     */
    @PostMapping("soa/promotion/getPromotion4Order")
    OrderPromotionRespVo getPromotion4Order(@RequestParam("reqVo") OrderPromotionReqVo reqVo);

    /**
     * 使用促销
     * @param reqVo
     * @return
     */
    @PostMapping("/takeMemberPromotions")
    Boolean takeMemberPromotions(@RequestParam("reqVo")TakeMemberPromotionReqVo reqVo);
}
